package com.tan.cloudfegin.Controller;

import com.api.cloud_api.Entity.CommonResult;
import com.api.cloud_api.Entity.Pay;
import com.tan.cloudfegin.Service.PayOpenFginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OpenFeginPay {
    @Resource
    private PayOpenFginService payOpenFeginService;

    @GetMapping(value = "/openfegin/oder/{id}")
    public CommonResult<Pay> getPaymentById(@PathVariable("id") Long id){
        return  payOpenFeginService.getPaymentById(id);


    }
    @GetMapping(value = "/openfegin/get/sleep")
    public String getsleep(){
        return payOpenFeginService.getsleep();
    }
}
